package singleton;

/**
 * @Author wonghiu
 * @Date 2021/8/15 17:41
 * @Version 1.0.1
 */
public final class SingleTonForLanhanDCL {
    private SingleTonForLanhanDCL(){}
    private static volatile SingleTonForLanhanDCL INSTANCE = null;
    public static SingleTonForLanhanDCL getInstance(){
        if (INSTANCE==null){
            synchronized (SingleTonForLanhanDCL.class){
                if (INSTANCE==null){
                    INSTANCE = new SingleTonForLanhanDCL();
                }
            }
        }
        return INSTANCE;
    }
}
